<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cheshire-CSG: Vector Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Cheshire-CSG
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Vector Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Vector" -->
<p><a class="el" href="class_vector.html" title="Vector class.">Vector</a> class.  
 <a href="class_vector.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="vector_8h_source.html">vector.h</a>&gt;</code></p>

<p><a href="class_vector-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac37c37579f774e7caca05777438b35e1"></a><!-- doxytag: member="Vector::Vector" ref="ac37c37579f774e7caca05777438b35e1" args="(const double &amp;a, const double &amp;b, const double &amp;c)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Vector</b> (const double &amp;a, const double &amp;b, const double &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a660c349db92ad8c2465487b78953f51c"></a><!-- doxytag: member="Vector::length" ref="a660c349db92ad8c2465487b78953f51c" args="()" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>length</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cc4aefe1d880f18feac3426ea8d933e"></a><!-- doxytag: member="Vector::operator[]" ref="a8cc4aefe1d880f18feac3426ea8d933e" args="(int i)" -->
double &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf99974616dc176c949a6eb14ab34685"></a><!-- doxytag: member="Vector::operator[]" ref="aaf99974616dc176c949a6eb14ab34685" args="(int i) const " -->
const double&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int i) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a439f710d3deeb8609b3428d79630c420"></a><!-- doxytag: member="Vector::Scale" ref="a439f710d3deeb8609b3428d79630c420" args="(const Vector &amp;b) const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Scale</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55aa4644709bc040a90dbff081bb717a"></a><!-- doxytag: member="Vector::operator+" ref="a55aa4644709bc040a90dbff081bb717a" args="() const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c38f8a4f5f6f9438e3ec8233cfaa6b0"></a><!-- doxytag: member="Vector::operator&#45;" ref="a1c38f8a4f5f6f9438e3ec8233cfaa6b0" args="() const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a669208fe9ad795111df6a54683563c6d"></a><!-- doxytag: member="Vector::operator+=" ref="a669208fe9ad795111df6a54683563c6d" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator+=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc58d82a7f0ec941d4f4d66012cf5e83"></a><!-- doxytag: member="Vector::operator&#45;=" ref="abc58d82a7f0ec941d4f4d66012cf5e83" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator-=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0ffd0237c0ba122b2a56fb84cdf5378"></a><!-- doxytag: member="Vector::operator*=" ref="aa0ffd0237c0ba122b2a56fb84cdf5378" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator*=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e0eaf65ee4c031c1a2f1868ce715761"></a><!-- doxytag: member="Vector::operator/=" ref="a7e0eaf65ee4c031c1a2f1868ce715761" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e9a64ca63bfbbd1a49c34fd10507459"></a><!-- doxytag: member="Vector::operator*=" ref="a5e9a64ca63bfbbd1a49c34fd10507459" args="(double)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator*=</b> (double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44879c9208fb830aa748fcf654776ebd"></a><!-- doxytag: member="Vector::operator/=" ref="a44879c9208fb830aa748fcf654776ebd" args="(double)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (double)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a133722e00601091cb2075219da5da6e4"></a><!-- doxytag: member="Vector::x" ref="a133722e00601091cb2075219da5da6e4" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09a21a140718f234eea348d5058cee0b"></a><!-- doxytag: member="Vector::y" ref="a09a21a140718f234eea348d5058cee0b" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>y</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b604d674485316754b72494f5fcc960"></a><!-- doxytag: member="Vector::z" ref="a1b604d674485316754b72494f5fcc960" args="" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>z</b></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3fdd2b7487c71d4b20a74e30a95891d"></a><!-- doxytag: member="Vector::operator+" ref="af3fdd2b7487c71d4b20a74e30a95891d" args="(const Vector &amp;, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4505f13a01e5d3312660626ae4ddebb"></a><!-- doxytag: member="Vector::operator&#45;" ref="ac4505f13a01e5d3312660626ae4ddebb" args="(const Vector &amp;, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1d37366ff3e48ec9bb37885cdf89f71"></a><!-- doxytag: member="Vector::operator*" ref="af1d37366ff3e48ec9bb37885cdf89f71" args="(const Vector &amp;, const Vector &amp;)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5b5658ce9cdb77c1e02c0716b4446c6"></a><!-- doxytag: member="Vector::operator*" ref="ad5b5658ce9cdb77c1e02c0716b4446c6" args="(const Vector &amp;, double)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5e2acc16843ab7b90d3c5755125fef4"></a><!-- doxytag: member="Vector::operator*" ref="af5e2acc16843ab7b90d3c5755125fef4" args="(double, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (double, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc4d2909e834dd600fae663f2c98a432"></a><!-- doxytag: member="Vector::operator/" ref="adc4d2909e834dd600fae663f2c98a432" args="(const Vector &amp;, double)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, double)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ac2d5db6d0258692a3278bf90069c6a"></a><!-- doxytag: member="Vector::operator/" ref="a7ac2d5db6d0258692a3278bf90069c6a" args="(const Vector &amp;, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca63309fd635cd4fa72e5335b76e1c21"></a><!-- doxytag: member="Vector::operator==" ref="aca63309fd635cd4fa72e5335b76e1c21" args="(const Vector &amp;, const Vector &amp;)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade583d2f018e2ff120d78c0e0998a422"></a><!-- doxytag: member="Vector::operator!=" ref="ade583d2f018e2ff120d78c0e0998a422" args="(const Vector &amp;, const Vector &amp;)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac6abefa6e71400fc5de5ca68b5ca7651"></a><!-- doxytag: member="Vector::operator&lt;" ref="ac6abefa6e71400fc5de5ca68b5ca7651" args="(const Vector &amp;, const Vector &amp;)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4e29ac8916987f0d304c44c6a98afed"></a><!-- doxytag: member="Vector::operator&gt;" ref="ac4e29ac8916987f0d304c44c6a98afed" args="(const Vector &amp;, const Vector &amp;)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>operator&gt;</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42522fc19a307d9ceca3ec122e81fea7"></a><!-- doxytag: member="Vector::min" ref="a42522fc19a307d9ceca3ec122e81fea7" args="(const Vector &amp;, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a42522fc19a307d9ceca3ec122e81fea7">min</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a new vector with coordinates set to the minimum coordinates of the two argument vectors. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac7fa5b7201c15daca80958d11a93c79a"></a><!-- doxytag: member="Vector::max" ref="ac7fa5b7201c15daca80958d11a93c79a" args="(const Vector &amp;, const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#ac7fa5b7201c15daca80958d11a93c79a">max</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a new vector with coordinates set to the maximum coordinates of the two argument vectors. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac32c66eb175b3fc3a00aa2b972af9a72"></a><!-- doxytag: member="Vector::Orthogonal" ref="ac32c66eb175b3fc3a00aa2b972af9a72" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#ac32c66eb175b3fc3a00aa2b972af9a72">Orthogonal</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new vector orthogonal to the argument vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aafee6c0f5a420bd4f869b62d099222b3"></a><!-- doxytag: member="Vector::Norm" ref="aafee6c0f5a420bd4f869b62d099222b3" args="(const Vector &amp;)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#aafee6c0f5a420bd4f869b62d099222b3">Norm</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the Euclidean norm of a vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49c314e89f483ee7c68fca2baf9920b1"></a><!-- doxytag: member="Vector::Normalized" ref="a49c314e89f483ee7c68fca2baf9920b1" args="(const Vector &amp;)" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector.html#a49c314e89f483ee7c68fca2baf9920b1">Normalized</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the Euclidean norm of a vector. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_vector.html" title="Vector class.">Vector</a> class. </p>
<p><a class="el" href="class_vector.html" title="Vector class.">Vector</a> is a data structure </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>headers/<a class="el" href="vector_8h_source.html">vector.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 2 2011 17:01:12 for Cheshire-CSG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
